package com.msg.beans;

import org.codehaus.jettison.json.JSONException;
import org.codehaus.jettison.json.JSONObject;


public class EventBean {

	private int Event_Id;
	private int Opponents_Id;
	private String Event_Code;
	private int Season;
	
	public EventBean(){}


	public JSONObject toJSONObject() {
		JSONObject json = new JSONObject();
		try {
			json.put("Event_Id", Event_Id);
			json.put("Opponents_Id", Opponents_Id);
			json.put("Event_Code", Event_Code);
			json.put("Season", Season);
			
		} catch (JSONException e) {
			e.printStackTrace();
		}
		return json;
	}


	public int getEvent_Id() {
		return Event_Id;
	}


	public void setEvent_Id(int event_Id) {
		Event_Id = event_Id;
	}


	public int getOpponents_Id() {
		return Opponents_Id;
	}


	public void setOpponents_Id(int opponents_Id) {
		Opponents_Id = opponents_Id;
	}


	public String getEvent_Code() {
		return Event_Code;
	}


	public void setEvent_Code(String event_Code) {
		Event_Code = event_Code;
	}


	public int getSeason() {
		return Season;
	}


	public void setSeason(int season) {
		Season = season;
	}


	@Override
	public String toString() {
		return "EventBean [Event_Id=" + Event_Id + ", Opponents_Id="
				+ Opponents_Id + ", Event_Code=" + Event_Code + ", Season="
				+ Season + "]";
	}
}